NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

select * from Employees

select E. * from Employees E

select E.FirstName,E.LastName from Employees E

select E. * from Employees E where E.EmployeeID =1

select E. * from Employees E where E.Country ='USA'

select E. * from Employees E where E.Region is Null

select E. * from Employees E where TitleOfCourtesy ='Dr.'

select E. * From Employees E where E.FirstName like 'N%'

select *
from Employees
where FirstName like '__d%'

select *
from Employees
where FirstName like 'a%' and LastName like '%r'


select *
from Employees
order by BirthDate desc

/* dogum tarihini sırala buyukten kucuge */

select *
from Employees
order by FirstName
/* isme göre sırala */


/* işi satışla ilgili olan (sales) tüm personeli ada
göre alfabetik sıralı bir şekilde sıralayın */
select *
from Employees
where title like '%sales%'
order by FirstName

/* c ile başlayan ürünleri stok miktarına göre artan bir şekilde listele */
select *
from Products
where ProductName like 'c%'
order by UnitsInStock

/* fiyatı 10 ile 25 arasında olan tüm ürünleri fiyat bilgisine göre azalan
bir şekilde listeleyiniz */

select *
from Products
where UnitPrice between 10 and 25

/* tüm ürünlerin toplam tutarını, adlarını, birim fiyatlarını, stok miktarlarını
toplam fiyata göre azalan bir şekilde listeleyin */

select
P.ProductName,
P.UnitPrice,
P.UnitsInStock,
(P.UnitPrice * P.UnitsInStock) As 'TotalPrice'
from Products P
order by TotalPrice desc

/* birim fiyat, stok, toplam fiyat, kdv tutarı ,kdv li toplam fiyat,
kdv li toplam fiyat bilgilerini stok miktarına göre azalan bir şekilde listeleyin */

select
P.ProductName,
P.UnitPrice,
P.UnitsInStock,
(P.UnitPrice*P.UnitInStock) 'TotalPrice'
((P.UnitPrice*P.UnitInStock)*0.18) 'Kdv'
((P.UnitPrice*P.UnitInStock)*1.18) 'KdvTotalPrice'
from Products P
order by UnitsInStock Desc

/* Tüm ürünlerin toplam birim fiyatını bulun */
select
sum(P.UnitPrice)
from Products P

/* Tüm ürünlerin ortalama fiyatını bulun */
Select
avg (P.UnitPrice) 'Avg'
from Products P

/* tüm ürünler içerisinden fiyatı ortalama fiyatın altında olan ürünleri listele */
select * from Products
where UnitPrice < (select avg(P.UnitPrice)
from Products P)
order by UnitPrice

/* Tüm ürünler içerisinde stok miktarı ortalama stok miktarının üstünde olan ürünleri listele*/
select * from Products
where UnitsInStock > (select
avg(P.UnitsInStock)
from Products P)

/* her üründen kaç adet sipariş verildigini göster */
select
ProductID,
sum (Quantity ) 'TotalQuantity'
from [Order Details]
group by ProductID
order by ProductID

/* her üründen ne kadarlık sipariş verildigini göster */
select
UnitPrice ,
sum (UnitPrice ) 'Total'
from [Order Details]
group by UnitPrice
order by UnitPrice




































     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.