-
求結果:select "1"?
-
查找包含"objs"的表?查找包含"o"的數據庫?
-
求今天距離2002年有多少年,多少天?
-
請用一句SQL獲取最後更新的事務號(ID)
![](http://static.javashuo.com/static/loading.gif)
-
有以下兩個表:
![](http://static.javashuo.com/static/loading.gif)
①請查詢11 ~ 15記錄的Userhtml
②查詢用戶類型type=1總積分排名前十的user數據庫
③寫一條存儲過程,實現往User中插入一條記錄並返回當前UserId(自增加id)函數
-
請求出每一個班級的數學平均分,並按照高低進行排序
![](http://static.javashuo.com/static/loading.gif)
-
一個TestDB
表有A
,B
兩個字段。
①
寫一句SQL
求出有重複值的記錄。
②
請刪除重複項。(最好用兩種方法)
![](http://static.javashuo.com/static/loading.gif)
-
表中有A
,B
,C
三列,用SQL
實現:當A
列>B
列選擇A
,不然選擇B
,當B
列>C
列選擇B
,不然選擇C
-
數據行列互換
轉換前: spa
![](http://static.javashuo.com/static/loading.gif)
轉換後: 設計
![](http://static.javashuo.com/static/loading.gif)
-
請統計每一個URL訪問次數,並按訪問次數由高到低的順序排序
![](http://static.javashuo.com/static/loading.gif)
-
用戶註冊表中id
是自增加的,
①
請查詢出一天24h
每小時註冊的人數
②
請查詢第4
條記錄
③
請查詢ID
重複次數大於2
次的記錄
![](http://static.javashuo.com/static/loading.gif)
-
圖書表(圖書號,圖書名,做者編號,出版社,出版日期)做者表(做者編號,做者姓名,年齡,性別)。用SQL
語句查詢出年齡小於平均年齡的做者名稱、圖書名,出版社
-
返回num
最小的記錄(禁止使用min
,max
等統計函數)
![](http://static.javashuo.com/static/loading.gif)
-
舉例說下項目中視圖的好處?
-
SQLServer有哪些系統數據庫?分別是幹什麼的?
-
索引有什麼好處,又有何缺點?彙集索引和非彙集索引有什麼區別?
-
何時須要SQLServer發郵件?怎麼去發郵件(只要求掌握圖形化頁面,命令會使用便可)?
-
存儲過程有什麼優勢?又有哪些缺點?
-
數據庫TestStudent
中學生表用到了TestMain
中的Class
表,請查詢一下TestStudent
中的學生在哪一個班級?思考一下要是我修改了TestMain
的數據庫名如何避免再次去批量修改SQL
?
![](http://static.javashuo.com/static/loading.gif)
-
針對索引缺點,項目中咱們通常怎麼解決?
-
隨着業務的發展,大家數據庫層面是怎麼逐步處理的?(我之前在羣裏也系統的說過,這個主要考察你是否真正參與一次頗具規模的完整項目中,不必定長篇大論,說你知道的就好了)
-
設計題:請根據如下圖設計一下商品相關的簡表(不包含活動、訂單、運費等)
- 畫出設計圖【主要考察是否有必定的真實項目經歷】
- 寫出建庫建表語句(每一個表數據很多於3個)【主要考察SQL基礎】
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
![](http://static.javashuo.com/static/loading.gif)
答案隔日更新,若有錯誤或者更好答案歡迎提出htm
http://www.cnblogs.com/dunitian/p/5977425.html#sjkxblog