English

Commerce (English Medium) Class 12 - CBSE Important Questions

Advertisements
Subjects
Topics
Subjects
Popular subjects
Topics

Please select a subject first

Advertisements
Advertisements
< prev  2681 to 2700 of 3630  next > 

Based on the table STUDENT given here, write suitable SQL queries for the following:

Roll No Name Class Gender City Marks
1 Abhishek XI M Agra 430
2 Prateek XII M Mumbai 440
3 Sneha XI F Agra 470
4 Nancy XII F Mumbai 492
5 Himanshu XII M Delhi 360
6 Anchal XI F Dubai 256
7 Mehar X F Moscow 324
8 Nishant X M Moscow 429
  1. Display gender-wise highest marks.
  2. Display city-wise lowest marks.
  3. Display the total number of male and female students.
Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

Discuss the significance of Group by clause in detail with the help of a suitable example.

Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: GROUP BY Clause in SQL

Write suitable SQL query for the following:

Display 7 characters extracted from the 7th left character onwards from the string ‘INDIA SHINING’.

Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

Write suitable SQL query for the following:

Display the position of occurrence of the string ‘COME’ in the string ‘WELCOME WORLD’.

Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

Write suitable SQL query for the following:

Round off the value 23.78 to one decimal place.

Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

Write suitable SQL query for the following:

Display the remainder of 100 divided by 9.

Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

Write suitable SQL query for the following:

Remove all the expected leading and trailing spaces from a column userid of the table ‘USERS’.

Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

Explain the following SQL function using a suitable example.

UCASE()

Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

Explain the following SQL function using a suitable example.

TRIM()

Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

Explain the following SQL function using a suitable example.

MID()

Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

Explain the following SQL function using a suitable example.

DAYNAME()

Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

Explain the following SQL function using a suitable example.

POWER()

Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

Shreya, a database administrator has designed a database for a clothing shop. Help her by writing answers to the following questions based on the given table:

TABLE: CLOTH
CCODE CNAME SIZE COLOR PRICE DOP
C001 JEANS XL BLUE 990 2022-01-21
C002 T-SHIRT M RED 599 2021-12-12
C003 TROUSER M GREY 399 2021-11-10
C004 SAREE FREE GREEN 1299 2019-11-12
C005 KURTI L WHITE 399 2021-12-07
  1. Write a query to display cloth names in lowercase.
  2. Write a query to display the lowest price of the clothes.
  3. Write a query to count the total number of clothes purchased in medium size.
    OR
    Write a query to count the year-wise total number of clothes purchased.
Appears in 1 question paper
Chapter: [1] Querying and SQL Functions
Concept: Functions in SQL

To display the last five rows of a series object ‘S’, you may write ______

Appears in 1 question paper
Chapter: [2] Data Handling using Pandas - I
Concept: A Series

Which of the following statement will import pandas library?

Appears in 1 question paper
Chapter: [2] Data Handling using Pandas - I
Concept: A Series

Which of the following can be used to specify the data while creating a DataFrame?

Appears in 1 question paper
Chapter: [2] Data Handling using Pandas - I
Concept: DataFrame

Assertion (A): DataFrame has both a row and column index.

Reasoning (R): A DataFrame is a two-dimensional labelled data structure like a table of MySQL.

Appears in 1 question paper
Chapter: [2] Data Handling using Pandas - I
Concept: DataFrame

Write a program to create a series of objects using a dictionary that stores the number of students in each house of class 12D of your school.

Note: Assume four house names are Beas, Chenab, Ravi, and Satluj having 18, 2, 20, and 18 students respectively and pandas library has been imported as pd.

Appears in 1 question paper
Chapter: [2] Data Handling using Pandas - I
Concept: A Series

What will be the output of the following code:

>>>import pandas as pd
>>>A = pd.Series(data = [35, 45, 55, 40])
>>>print(A > 45)
Appears in 1 question paper
Chapter: [2] Data Handling using Pandas - I
Concept: A Series

Carefully observe the following code:

import pandas as pd
Year1 = {'Q1':5000,'Q2':8000,'Q3':12000,'Q4': 18000} Year2 = {'A' :13000,'B':14000,'C':12000}
totSales = {1:Year1,2:Year2}
df = pd.DataFrame(totSales)
print(df)

Answer the following:

  1. List the index of the DataFrame df
  2. List the column names of DataFrame df.
Appears in 1 question paper
Chapter: [2] Data Handling using Pandas - I
Concept: DataFrame
< prev  2681 to 2700 of 3630  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×