WebApr 24, 2000 · A student may leave school before age 17 if he meets the following conditions: 1. he is at least age 15 or has completed the 9th grade, 2. he has his parent's … WebFeb 1, 2005 · View name and fee of all students in descending order of fee. Ans. Select name,fee from student order by fee desc; x. List male students in descending order of their class. Ans. Select * from student where gender=’M’ order by class; Q2. Write SQL queries on the basis of following table.
SQL ORDER BY Clause - BeginnersBook.com
WebSELECT * FROM STUDENT; Write an SQL Statement to list the Phone and Email of all Students. SELECT Phone, Email FROM STUDENT; Write an SQL Statement to list the Student Last Name, Phone, Email and Age of all Students that are 25 years old. SELECT LastName, Phone, Email, Age FROM STUDENT WHERE Age = 25; WebSep 20, 2024 · If we wanted to sort some of the data in ascending order and other data in descending order, then we would have to use the ASC and DESC keywords. In this new … process engineering specialists pte ltd
order by in MongoDB Examples to Implement in order by in MongoDB …
WebA select list consisting only of a single unqualified * can be used as shorthand to select all columns from all tables: SELECT * FROM t1 INNER JOIN t2 ... tbl_name .* can be used as a qualified shorthand to select all columns from the named table: SELECT t1.*, t2.* FROM t1 INNER JOIN t2 ... WebSELECT name FROM students ORDER BY name DESC By default this does case-sensitive ordering (so that Decker would follow DeLeon, since the ASCII value for cis greater than the ASCII value for L.) If we want it a case-insensitive ordering (so that Decker comes before DeLeon), we can sort of the all-capitals version of each name: WebOct 17, 2012 · 2 Suppose we have a table "Person" as below and we need to find out the frequency of each age. We could find out frequency distribution by following SQL query: SELECT Age, COUNT (Age)AS Frequency FROM Persons GROUP BY Age ORDER BY COUNT (Age) DESC SQL Query to find out the frequency of each element in a column process engineering tools download