NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

aidatı en yüksek kişiin numara adı aidat verlerimni list sorgu
YÖNTEM 1
USE VT1;
SELECT NUMARA,ADI,AİDAT FROM KAYIT WHERE AİDAT IN(
SELECT MAX(AİDAT) FROM KAYIT);
YÖNTEM 2 (DEĞİŞKENLİ)
USE VT1;
DECLARE @EYA INT;
SELECT @EYA=MAX(AİDAT) FROM KAYIT;
SELECT NUMARA,ADI,AİDAT FROM KAYIT WHERE AİDAT=@EYA;

SINIF HAKKINDA BAŞARILI VE BAŞARISIZ ÖĞRENCİ SAYISINA BAKARAK YORUM YAPAN SORGU(MESAJ KISMINDA)
(BAŞARILI ÖĞRENCİ SAYISI %70 VE FAZLA İSE "SEVİYE YÜKSEK"
BAŞARILI ÖĞRENCİ SAYISI %50 VE &70 ARASINDA İSE "SEVİYE ORTA"
BAŞARILI ÖĞRENCİ SAYISI %50DEN AZ İSE "SEVİYE DÜŞÜK"
ORT>=60 BAŞARILI )
SINIF MEVCUDU @SM
BAŞARILI ÖĞRENCİ SAYISI @BS
ORAN @ORAN(@BS*100/SM)
İF(KOŞUL) KOMUT
İF (KOŞUL)
BEGİN
KOMUT YADA KOMUTLAR
END
ELSE
BEGİN
KOMUT YADA KOMUTLAR
END
CEVAP :
USE VT1;
DECLARE @SM INT,@BS INT,@ORAN INT;
SELECT @SM=COUNT(*) FROM KAYIT ;
SELECT @BS=COUNT(*) FROM NOTLAR WHERE (ARASINAV*0.3+FİNAL*0.7)<=60;
SET @ORAN=@BS*100/@SM;

IF (@ORAN>=70) PRINT 'SEVİYE YÜKSEK' ;
IF (@ORAN>=50 AND @ORAN>=70) PRINT 'SEVİYE ORTA' ;
IF (@ORAN<=50) PRINT 'SEVİYE DÜŞÜK' ;

adresi tekirdağ olan öüğrencilerden final notu en yüksek ve en düşük olanların numara adı final verilerinhi kullanan sorgu

USE VT1;
DECLARE @T1 TABLE ( NUMARA INT,ADI VARCHAR(50),FİNAL INT );
DECLARE @T2 TABLE ( NUMARA INT,ADI VARCHAR(50),FİNAL INT );

INSERT INTO @T1
SELECT NUMARA,ADI,FİNAL FROM KAYIT,NOTLAR WHERE NUMARA=OGR_NO AND ADRES='TEKİRDAĞ';
INSERT INTO @T2
SELECT * FROM @T1
WHERE FİNAL IN (SELECT MAX(FİNAL) FROM @T1);
INSERT INTO @T2
SELECT * FROM @T1
WHERE FİNAL IN (SELECT MIN(FİNAL) FROM @T1);
SELECT *FROM @T2;

YÖNTEM 2
USE VT1;
SELECT NUMARA,ADI,FİNAL FROM KAYIT,NOTLAR WHERE NUMARA=OGR_NO AND ADRES='TEKİRDAĞ' AND FİNAL IN
(SELECT MAX(FİNAL) FROM KAYIT,NOTLAR WHERE NUMARA=OGR_NO AND ADRES='TEKİRDAĞ')
UNION
SELECT NUMARA,ADI,FİNAL FROM KAYIT,NOTLAR WHERE NUMARA=OGR_NO AND ADRES='TEKİRDAĞ' AND FİNAL IN
(SELECT MIN(FİNAL) FROM KAYIT,NOTLAR WHERE NUMARA=OGR_NO AND ADRES='TEKİRDAĞ');


BAŞARISIZ ÖĞRENCİLERİN NUMARA ADI ORTALAMA BÖLUM ADI OKUL ADI VERLERİNİ LİST SORGU

     
 
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.