第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

SQL Server基礎(chǔ)--T-SQL語句

難度入門
時(shí)長 1小時(shí)37分
學(xué)習(xí)人數(shù)
綜合評(píng)分9.57
350人評(píng)價(jià) 查看評(píng)價(jià)
9.8 內(nèi)容實(shí)用
9.4 簡潔易懂
9.5 邏輯清晰
  • select...(用逗號(hào)隔開)from... select * from *表示所有的列 select Top 100 * from 所有列的前100行 oder by desc倒序 asc正序 oder by...desc 可以同時(shí)按照多個(gè)column排列 oder by 2 按照選擇的第二個(gè)排列 isnull函數(shù) isnull(color,'')用空格代替空值NULL as關(guān)鍵字:給表列起名 +關(guān)鍵字:連接“列”和“字符串” 注意‘’中的空格 算術(shù)表達(dá)式 + - * / select rate*40*52 as...from... round(rate*40*52,1) 1表示保留小數(shù)點(diǎn)后1位 0則不保留
    查看全部
  • table中的各種屬性說明
    查看全部
  • 兩種時(shí)間格式,后面月日年 between and >= 和 < :不包含某一天
    查看全部
  • order by 2:select屬性列表中的第二個(gè)屬性 isnull(Color,'') as Color: 用空格代替空值 'The list price for ' + ProductNumber + ' is $ ' + convert(varchar, ListPrice) + '.' as [Description]
    查看全部
  • isnull(color,"")
    查看全部
  • 記憶名詞
    查看全部
  • 講的很好的,為什么后面沒有更新了?
    查看全部
  • 聲音杠杠的
    查看全部
  • 聲音好聽
    查看全部
  • 啥時(shí)候出新的啊
    查看全部
  • 記住這些名詞的意思 以后幫助很大
    查看全部
  • 重新學(xué)習(xí)數(shù)據(jù)庫~
    查看全部
  • --count:統(tǒng)計(jì)結(jié)果數(shù) select count(SalesPersonID) from Sales.SalesOrderHeader where SalesPersonID is not null --distinct:獨(dú)一無二的 select distinct(SalesPersonID) from Sales.SalesOrderHeader where SalesPersonID is not null select SalesPersonID,OrderDate,Max(TotalDue) as MaximumTotalSales from [Sales].[SalesOrderHeader] where SalesPersonID is not null and OrderDate >='2007/1/1' group by SalesPersonID,OrderDate having Max(TotalDue)>150000 order by OrderDate desc Having與Where的區(qū)別 where 子句的作用是在對(duì)查詢結(jié)果進(jìn)行分組前,將不符合where條件的行去掉,即在分組之前過濾數(shù)據(jù),where條件中不能包含聚組函數(shù),使用where條件過濾出特定的行。 having 子句的作用是篩選滿足條件的組,即在分組之后過濾數(shù)據(jù),條件中經(jīng)常包含聚組函數(shù),使用having 條件過濾出特定的組,也可以使用多個(gè)分組標(biāo)準(zhǔn)進(jìn)行分組
    查看全部
  • 在什么之間:between ... and ... 例: select SalesOrderID,OrderDate,SalesPersonID,TotalDue as TotalSales from Sales.SalesOrderHeader where Orderdate between '2005-08-01' and '1/1/2006' --通配符%,模糊搜索 select * from Production.Product where name like '%Mountain%' --通配符_,單個(gè)字符 select * from Production.Product where name like '_ountain%' --in:匹配多個(gè)字段,即集合 select * from Production.Product where color in ('red','white','black') --not in : 不等于某個(gè)字段 select * from Production.Product where class not in ('H','L') --查詢null值 select * from Production.Product where size isnull --查詢非null select * from Production.Product where size is not null
    查看全部
  • use AdventureWorks--選擇數(shù)據(jù)庫 select Top 10 * from Production.Product--輸出前10個(gè)數(shù)據(jù) --根據(jù)listprice和Name進(jìn)行降序排序 select ProductID, Name, ProductNumber, Color, Size, ListPrice from Production.Product order by listprice desc,Name desc --根據(jù)輸出的第二個(gè)列進(jìn)行排序,即Name select ProductID, Name, ProductNumber, Color, Size, ListPrice from Production.Product order by 2 --isnull:輸出時(shí)代替null值,例: select ProductID, Name, ProductNumber, isnull(Color,''), isnull(Size,''), ListPrice from Production.Product --as:別名 select ProductID, Name, ProductNumber, isnull(Color,'') as Color, isnull(Size,'') as Size123, --using an alias ListPrice from Production.Product --使用”+“連接字符 select ProductID, Name as ProductName, 'The list price for '+ProductNumber+'is $ '+convert(varchar,ListPrice)+'.' as Description from Production.Product --算術(shù)計(jì)算,round(rate*40*52,1),1代表保留一位小數(shù),0則不保留 select BusinessEntityID, rate*40*52 as AnnualSalary, round(rate*40*52,1) as AnnualSalary round(rate*40*52,0) as AnnualSalary from HumanResources.EmployeePayHistory
    查看全部

舉報(bào)

0/150
提交
取消
課程須知
本教程特別為零基礎(chǔ)的學(xué)員而設(shè)計(jì),無需有任何計(jì)算機(jī)背景和專業(yè)。老師會(huì)循序漸進(jìn),深入淺出地對(duì)數(shù)據(jù)庫以及相關(guān)的TSQL查詢語言進(jìn)行介紹講解。
老師告訴你能學(xué)到什么?
1、目前市場(chǎng)上流行的幾大數(shù)據(jù)庫巨頭及其產(chǎn)品簡介 2、詳細(xì)的微軟數(shù)據(jù)庫軟件安裝步驟和基本功能介紹 3、關(guān)系型數(shù)據(jù)庫的概念介紹和實(shí)體模型 4、經(jīng)典TSQL查詢句式 5、如何進(jìn)行正倒序排列、使用別名、數(shù)學(xué)符號(hào) 6、如何使用條件句式,如何處理空值,如何使用分組函數(shù)

微信掃碼,參與3人拼團(tuán)

微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復(fù)購買,感謝您對(duì)慕課網(wǎng)的支持!