環境是vscode,我用在個人專題,當時還沒有做資料庫可能沒寫完整,之後再補要去的是測試連結cwww開頭https://cwww.newebpay.com/main/login_center/single_login我有做一個蠢事,我申請www,不是測試環境cwww一直沒通過申請,換成測試環境cwww就成功了這個部分麻煩先找google,還有看官網資料問AI是需要關鍵字,我一開始不知道 cwwwㄓ--------我是申請個人,有一個基本資料要填一填然後信箱看申請狀態通知
文章標籤:

羽水 發表在 痞客邦 留言(0) 人氣()

取得用於 ADO.NET 程式代碼範例的 SQL Server 資料庫 - ADO.NET | Microsoft Learn因為拿到的題目不是我寫的,所以不放哈哈練習答案沒有用AI,可能會錯--select * from Products;--select * from Products order by ProductName;
--select ProductID, ProductName, UnitPrice from Products;
--select ProductID AS [產品編號], ProductName AS [產品名稱], UnitPrice AS [單價] from Products;
--select ProductID AS [品編號], ProductName AS [品名], UnitPrice AS [單價], UnitsInStock AS [庫存], UnitsOnOrder AS [在途數], ReorderLevel AS [再訂購量] from Productswhere UnitsInStock < ReorderLevel
--select ProductID AS [品編號], ProductName AS [品名], UnitPrice AS [單價], UnitsInStock AS [庫存], UnitsOnOrder AS [在途數], ReorderLevel AS [再訂購量] from Productswhere (UnitsInStock+UnitsOnOrder) < ReorderLevel
-- select ProductName AS [品名] from Productswhere ProductName like'%ku%'
-- select CategoryID AS [類別],ProductName AS [品名] from Products-- where CategoryID = 1 or CategoryID =4 or CategoryID =8where CategoryID in (1,4,8)ORDER BY CategoryID,ProductName
-- select UnitPrice AS [單價],ProductName AS [品名] from Products-- where UnitPrice >= 15 and UnitPrice<=20ORDER BY UnitPrice DESC--
--
select * from Products

--
select top 3 with ties ProductID AS [品編號],UnitPrice AS [單價],ProductName AS [品名] from Products
ORDER BY UnitPrice DESC

--
select avg(UnitPrice) AS [平均單價] from Products

--
select avg(UnitPrice) AS [指定類別平均單價] from Products
where CategoryID in (1,4,8)

--
select Products.CategoryID AS [類編號],CategoryName AS [類別],avg(UnitPrice) AS [各類平均單價] from Products
left join Categories on Products.CategoryID = Categories.CategoryID
GROUP BY Products.CategoryID,CategoryName
ORDER BY Products.CategoryID ASC

--
select top 3 with ties Products.CategoryID AS [類編號],CategoryName AS [類別],avg(UnitPrice) AS [平均單價] from Products
left join Categories on Products.CategoryID = Categories.CategoryID
GROUP BY Products.CategoryID,CategoryName
ORDER BY [平均單價] DESC

--
select top 1 with ties ProductID AS [品編號], ProductName AS [品名],UnitPrice AS [價格最高] from Products
ORDER BY [價格最高] DESC

--
select top 1 with ties ProductID AS [品編號], ProductName AS [品名],UnitPrice AS [價格最低] from Products
ORDER BY [價格最低] ASC

--
select ProductID AS [品編號], ProductName AS [品名], UnitPrice AS [價格最低]
from Products
where UnitPrice = (select min(UnitPrice) from Products);

-- select ProductID AS [品編號],
--        ProductName AS [品名],
--        Products.UnitPrice AS [價格最低]
-- from Products
-- join (
--     select min(UnitPrice) as MinPrice
--     from Products
-- ) m on Products.UnitPrice = m.MinPrice;

羽水 發表在 痞客邦 留言(0) 人氣()

客製化 ASP.NET Core Identity身份驗證我是一個會把Travel打成Traval的人,超級笨----------------------------------------------------------跟著官網說明做一次,其實一開始是提議直接用範本改我不想要在登入時加上一個記住我的勾選,而且我想要有範本來學習。後來自己問AI和載入套件開始寫Service...ASP.NET Core 上的 Identity 簡介 | Microsoft Learn----------------------------------------------------------剛開始是建立MVC專案+範本
文章標籤:

羽水 發表在 痞客邦 留言(0) 人氣()

11/16 問我為什麼我也不知道,問AI自己實驗的:
這是T-SQL語法:

羽水 發表在 痞客邦 留言(0) 人氣()

ADO.NET 資料存取的類別庫集(.NET Framewo
參考 ADO.NET - 維基百科,自由的百科全書
成年人就自己查一下,上課時間也短,  11/17 也是自己看的筆記,寫錯就是我的錯,你沒錯,感恩

羽水 發表在 痞客邦 留言(0) 人氣()

Employee Bonus
找獎金低於1000的員工姓名和獎金金額,有回傳null

羽水 發表在 痞客邦 留言(0) 人氣()

Department Highest Salary
join虛擬x表
聚合子查詢

羽水 發表在 痞客邦 留言(0) 人氣()

Customers Who Never Order
找匹配,找沒訂購過的客戶

羽水 發表在 痞客邦 留言(0) 人氣()

Duplicate Emails
找重複的信箱

羽水 發表在 痞客邦 留言(0) 人氣()

Combine Two Tables | Database
SQL server

羽水 發表在 痞客邦 留言(0) 人氣()

 
都先找簡單題,剛好寫完上課用到...

羽水 發表在 痞客邦 留言(0) 人氣()

前幾天看初學者要寫啥練習
寫一寫的

羽水 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。