Informatics Practices
Match the following SQL functions/clauses with their descriptions:
| SQL Function | Description | ||
|---|---|---|---|
| P. | MAX() | 1. | Find the position of a substring in a string. |
| Q. | SUBSTRING() | 2. | Returns the maximum value in a column. |
| R. | INSTR() | 3. | Sorts the data based on a column. |
| S. | ORDER BY | 4. | Extracts a portion of a string. |
- P-2, Q-4, R-3, S-1
- P-2, Q-4, R-1, S-3
- P-4, Q-3, R-2, S-1
- P-4, Q-2, R-1, S-3
SQL Queries
1 Like
Answer
P-2, Q-4, R-1, S-3
Reason —
The
MAX()function is used to return the maximum value from a specified column in a database table.The
SUBSTRING()function extracts a portion of a string based on specified starting position and length.The
INSTR()function returns the position of a substring within a string.The
ORDER BYclause is used to sort the result set based on one or more columns in ascending or descending order.
Answered By
2 Likes
Related Questions
Identify the type of cybercrime that involves sending fraudulent emails to deceive individuals into revealing sensitive information.
- Hacking
- Phishing
- Cyberbullying
- Cyberstalking
While creating a Series using a dictionary, the keys of the dictionary become:
- Values of the Series
- Indices of the Series
- Data type of the Series
- Name of the Series
Fill in the Blank
Boolean indexing in Pandas DataFrame can be used for ……………
- Creating a new DataFrame
- Sorting data based on index labels
- Joining data using labels
- Filtering data based on condition
Which Matplotlib plot is best suited to represent changes in data over time?
- Bar plot
- Histogram
- Line plot
- Histogram & Bar plot