使用余额大于 1,000 美元的患者的患者编号、姓氏、名字、街道、城市和邮政编码创建名为 HighBalance 的视图。在视图中显示数据
我在创建此 SQL 命令序列时遇到问题,每次我尝试更正它时,它都会给我一条错误消息:CREATE TABLE 序列中的语法错误
CREATE Table HighBalance AS
SELECT PatientNum, LastName, FirstNAme, Street, City, ZipCode
FROM Patient
WHERE Balance>1000 ;
我做错了什么?
也许
FirstNAme
应该是FirstName
?
也许CREATE TABLE
应该是CREATE VIEW
?
CREATE VIEW HighBalance AS
SELECT PatientNum, LastName, FirstName, Street, City, ZipCode
FROM Patient
WHERE Balance > 1000;