Jump to content

Sql Dili


P-Break
 Share

Recommended Posts

[quote]SELECT URUNADI,FIRMA,FIYAT FROM URUN[/quote]

Veritabanındaki "URUNADI,FIRMA,FIYAT" tablolarına bağlan.

[hr]

[quote]WHERE FIRMA=’VESTEL’[/quote]

Veritabanında, "VESTEL" kriterine uygun bilgiler al.

[hr]

[quote]5.URUN tablosundan STOKSAYISI alanı 0 olan kayıtları silen SQL kodunu yazınız.(10 puan)[/quote]

SQL = "DELETE * from 5.URUN WHERE STOKSAYISI='0'"

[hr]

[quote]ORDER BY URUNADI DESC[/quote]

URUNADI tablosunu tersten sırala.

[hr]

[quote]SELECT MAX(FIYAT) FROM URUN
WHERE FIRMA=’VESTEL’
GROUP BY URUNKODU
[/quote]

URUN tablosundan FIYAT'ı en yüksek olanı seç

VESTEL bilgisini al

URUNKODUNA göre grupla

[hr]

[right]Bildiklerimi yazdım. Yeni yeni SQL öğrendiğim için de yanlışlar olabilir. Birkaç arkadaş kontrol etsin, öyle kullanın derim ben :whistle: .[/right]

Edited by pcusta_99
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...