Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Creating Table from Sql Query

Author  Topic 

Swati Jain
Posting Yak Master

139 Posts

Posted - 2006-07-28 : 05:13:18
SELECT DISTINCT "SessionDelay"."delayID", "SessionDelayed"."ActualEndDate", "BatchLectureDetails"."lectureFromTime", "BatchLectureDetails"."lectureToTime", "FacultyMaster"."firstName", "FacultyMaster"."middleName", "FacultyMaster"."lastName", "LocationMaster"."locationName", "Batch"."startDate", "Batch"."endDate", "Batch"."batchID", "CourseMaster"."courseName", "FeedBack"."averageFeedBack", "FeedBack"."isLogicalDeleted"
FROM (((("SIEIMSDev"."dbo"."SessionDelay" "SessionDelay" INNER JOIN (("SIEIMSDev"."dbo"."BatchLectureDetails" "BatchLectureDetails" INNER JOIN "SIEIMSDev"."dbo"."Batch" "Batch" ON "BatchLectureDetails"."batchID"="Batch"."batchID") INNER JOIN "SIEIMSDev"."dbo"."FacultyMaster" "FacultyMaster" ON "BatchLectureDetails"."facultyID"="FacultyMaster"."facultyID") ON "SessionDelay"."batchID"="Batch"."batchID") INNER JOIN "SIEIMSDev"."dbo"."SessionDelayed" "SessionDelayed" ON "SessionDelay"."batchID"="SessionDelayed"."batchid") INNER JOIN "SIEIMSDev"."dbo"."CourseMaster" "CourseMaster" ON "Batch"."courseID"="CourseMaster"."courseID") INNER JOIN "SIEIMSDev"."dbo"."LocationMaster" "LocationMaster" ON "Batch"."locationID"="LocationMaster"."locationID") INNER JOIN "SIEIMSDev"."dbo"."FeedBack" "FeedBack" ON "Batch"."batchID"="FeedBack"."batchID"
WHERE ("Batch"."endDate">={ts '1899-12-30 00:00:00'} AND "Batch"."endDate"<{ts '2006-07-23 00:00:00'}) AND "FeedBack"."isLogicalDeleted"=0
ORDER BY "Batch"."batchID")

I want to create single table from above query ? How it is possible

nr
SQLTeam MVY

12543 Posts

Posted - 2006-07-28 : 05:15:27
Duplicate
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=69723

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -