Publicité
The tblMagInfo table contains three fields- The Code and Cost fields a.docx
The tblMagInfo table contains three fields- The Code and Cost fields a.docx
Prochain SlideShare
The theoretical yield of a reaction is the amount of product obtained.docxThe theoretical yield of a reaction is the amount of product obtained.docx
Chargement dans ... 3
1 sur 2
Publicité

Contenu connexe

Plus de helenc18(20)

Publicité

The tblMagInfo table contains three fields- The Code and Cost fields a.docx

  1. The tblMagInfo table contains three fields. The Code and Cost fields are numeric. The Magazine field contains text. The dataset's name is MagsDataSet. Write a LINQ statement that arranges the records in descending order by the Cost field. Write a LINQ statement that selects records having a code of 9. Write a LINQ statement that selects records having a cost of $3 or more. Write a LINQ statement that selects the Daily Food Guide magazine. Write a LINQ statement that selects magazines whose name begins with the letter G (in either uppercase or lowercase). Write a LINQ statement that calculates the average cost of a magazine. Justify your answers using examples and reasoning. Solution Create table tblmaginfo (code int (pk), costfield int, magfield varchar (50)); Select *from tblmaginfo orderby costfield desc; Select *from tblmaginfo where code=9; Select *from tblmaginfo where where cost'$3' Select *from tblmaginfo where where magzinefield='dailyfood guide magzine' Select * from tblmaginfo wheremagzine name begins' G' Select avg (cost) from tblmaginfo; Thw about statesments written using cluses where and having.and those are syntax using answers just check with capital leters where tblmaginfo.
Publicité