+ 2
SQL Help
CREATE VIEW TopLevelCust AS SELECT CustomerNum FROM Customer WHERE CreditLimit >= 10000 What am I doing wrong? It should create a view table..
8 Answers
+ 6
You have an AS but no alias to assign
CREATE VIEW TopLevelCust
AS viewName
SELECT CustomerNum
FROM Customer
WHERE CreditLimit >= 10000
+ 2
I've always used mySQL. Are you making sure to create your tables first? Is there a specific error it is giving you when trying to run?
+ 2
No but mysql workbench can, its a program you can download to work mysql
+ 2
Jackson OāDonnell TopLevelCust is the alias. The syntax CREATE VIEW view_name AS SELECT ... FROM ... is correct IMO
+ 1
Jackson OāDonnell I tried doing that and it did not work. I am using MS Access, is there a different non-commercial RDMS I can use?
+ 1
Jackson OāDonnell I have a pre-made database. It pops-up with a Syntax Error on Access, and highlights the VIEW. So Iām just going to download MySQL and go from there. Can MySQL open SQL files?
+ 1
Okay thank you Jackson OāDonnell
0
Anna I knew I was doing all of right... To bad it does not work with MS Access I really do not want to download a different DBMS :/