Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Problem with the SELECT statement

$
0
0

I wanted to create a view from ms. access. So I used the following code

CREATE VIEW  Teaches (DayId,DayName,Period,SubName) AS
SELECT D.DayId,D.DayName,P.Period,S.SubName
FROM Day AS  D,Period AS  P, Subject AS  S,Teaching AS  T
WHERE T.DayNo=D.DayId AND T.PeriodNo=P.PerId AND T.SubNo=S.SubId
ORDER BY D.DayId ASC;

But its saying that there is a problem at the FROM statement. Can anyone tell me why this doesn't work?


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>