SQL puas tuaj yeem suav tau?
SQL puas tuaj yeem suav tau?

Video: SQL puas tuaj yeem suav tau?

Video: SQL puas tuaj yeem suav tau?
Video: Pheej Lauj-"Koj Tsis Tau Kuv Koj Puas Chim-Nkauj Tawm Tshiab-2022-23 2024, Kaum ib hlis
Anonim

Yog - SQL ntawv Server tuaj yeem ua tau yooj yim ntxiv, rho tawm, sib faib thiab faib. Ntxiv rau, SQL ntawv Server tau xam SUM, COUNT, AVG, thiab lwm yam. Rau cov hom ntawm suav , kos tawm SQL ntawv Server T- SQL ntawv Aggregate Functions.

Xav txog qhov no, lub database puas tuaj yeem suav tau?

Database formula teb suav . Teb suav tau yuav tau ua nyob rau hauv a database los ntawm kev ntxiv ib daim teb. Teb suav tso cai rau koj ua Ntxiv, rho tawm, sib npaug, thiab faib ua haujlwm ntawm ib qho lej hauv koj li database . Kev ua haujlwm ua tau kuj tseem yuav pab pawg siv cov kab lus (ie.

Qhov thib ob, koj puas tuaj yeem faib hauv SQL? Cov SQL faib (/) tus neeg teb xov tooj siv rau faib ib kab lus los yog lej los ntawm lwm tus.

Ua li no, koj ua li cas suav feem pua hauv SQL query?

Hauv qhov no, peb tuaj yeem sau cov lus hauv qab no SQL lus nug rau xam , hauv SQL ntawv , cov feem pua ntawm cov qhab nia qhab nia: Xaiv (sum(marks_subject)*100)/1000 AS percentage_marks NTAWM STUDENT_MARKS WHERE student_name = 'X'; Xaiv . (sum(marks_subject)*100)/1000 AS feem pua_marks.

Yuav ua li cas koj ua tus lej lej hauv SQL?

Muaj xya tus lej lej : Ntxiv, rho tawm, sib npaug, Kev faib , Modulo, DIV, Unary rho tawm. Unary rho tawm. Nws hloov lub cim ntawm kev sib cav. Zoo ib yam li qhov yooj yim lej lej suav, tus lej lej hauv SQL kuj muaj Tus neeg ua haujlwm Ua ntej.

Pom zoo: