推介:| 觀塘外賣速遞 | 將軍澳外賣速遞 | Party 美食到會 | 汽車蓬頂維修翻身 | 雪地靴 | 羊毛鞋 | 羊毛鞋墊 | Online Food Ordering System | Pre Wedding Photographer |

發新話題
打印

[疑難] 想問一0的SQL Statement點寫,唔該幫0下手

想問一0的SQL Statement點寫,唔該幫0下手

當我create 完呢兩個table之後,
又入左第一組data落egcard之後,入第二組果陣就出左個error

應該點算?
而另一個database就入呢三個table

想做以下查詢
list晒所有customer names 同埋由2003-01-01至到2003-12-310既所有order日期
select concat(upper(left(cfname,1)),substring(cfname,2,length(cfname)),"
",upper(clname)) as Customer_Name from customerfour, * from orderfour where doo between 2003-01-01 and 2003-12-31;
呢句有error,唔知點解
list晒所有customer names 同埋將employee numbers(empno) associated with employee phone number(ephone),仲要個bal 多個2000
select concat(upper(left(cfname,1)),substring(cfname,2,length(cfname)),"
",upper(clname)) as Customer_Name from customerfour, custno as Employee_Number, ephone as Employee_Phone_Number from customerfour left join employeefour on customerfour.custno = employeefour.ephone where bal > 2000;
又係error,唔知錯咩
同埋亦有2句唔係咁識寫
list晒唔同area之中邊個bal最大同最細個數目
list晒有邊個employee無order跟
customer names 同employee names要list成咁,for example landi wong變成Landi WONG,即係cfname或者efname要同clname或者elname combine埋一齊


相關搜索目錄: Database

TOP

QQQQQQQQQQQQQQQQQQ

TOP

發新話題


重要聲明:本討論區是以即時上載留言的方式運作,本網站對所有留言的真實性、完整性及立場等,不負任何法律責任。而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。於有關情形下,用戶應尋求專業意見(如涉及醫療、法律或投資等問題)。由於本討論區受到「即時上載留言」運作方式所規限,故不能完全監察所有留言,若讀者發現有留言出現問題,請聯絡我們。本討論區有權刪除任何留言及拒絕任何人士上載留言,同時亦有不刪除留言的權利。切勿撰寫粗言穢語、誹謗、渲染色情暴力或人身攻擊的言論,敬請自律。本網站保留一切法律權利。


Copyright 1997- Xocat. All Right Reserved.