Login
Remember
Register
All Courses
Ask a Question
Questions
Unanswered
Ask a Question
Blog
Tutorials
Interview Questions
Back
Login
Explore Courses
Blog
Tutorials
Interview Questions
community
SQL
Write a query to display list of department names...
Write a query to display list of department names and number of students in that department, if student exist. Give an alias to the count as student_count. Sort the record based on department name.
Write a query to display list of department names and number of students in that department, if student exist. Give an alias to the count as student_count. Sort the record based on department name.
–1
vote
2
views
asked
Jun 24, 2021
in
SQL
by
sandygg07
(
110
points)
edited
Jul 7, 2021
by
dev_sk2311
Could someone help me in writing a query to display a list of department names and the number of students of students in that department, if students exist? Give an alias to the count as student_count. Sort the record based on the department name.
sql
Please
log in
to add a comment.
Please
log in
to answer this question.
0
Answers
Related questions
0
votes
0
answers
Write SQL query to display total marks for students of grade 2 present in table stu_du
asked
Jun 24, 2021
by
Poplu
(
120
points)
0
votes
1
answer
Does artificial intelligence belongs to ECE or not? What is the scope of artificial intelligence in this department? I'm a final year student, can I do projects with artificial intelligence? Is it that much important to my department?
asked
Dec 29, 2020
in
AI and Deep Learning
by
Gaurav S
(
820
points)
data-science
artificial-intelligence
machine-learning
deep-learning
0
votes
2
answers
SQL query that returns value based on lookup of id in another table
asked
Jan 7, 2021
in
SQL
by
Appu
(
6.1k
points)
sql
sql-server
0
votes
1
answer
How can I select multiple columns from a subquery (in SQL Server) that should have one record (select top 1) for each record in the main query?
asked
Jul 27, 2019
in
SQL
by
Soni Kumari
(
40.7k
points)
sql
0
votes
1
answer
Using column alias in WHERE clause of MySQL query produces an error
asked
Jul 12, 2019
in
SQL
by
Tech4ever
(
20.3k
points)
mysql
sql
mysql-error-1054
31k
questions
32.8k
answers
501
comments
693
users
All categories
Python
(3.4k)
Java
(2.2k)
SQL
(1.6k)
Linux
(372)
Big Data Hadoop & Spark
(1.3k)
Data Science
(3.3k)
R Programming
(865)
C Programming
(34)
DevOps and Agile
(2.9k)
Docker
(61)
AI and Deep Learning
(1.4k)
Machine Learning
(1.1k)
AWS
(2.5k)
Azure
(1.6k)
GCP
(226)
RPA
(616)
Selenium
(211)
Software Testing
(58)
Blockchain
(436)
Salesforce
(823)
Others
(580)
BI
(1.9k)
IoT
(24)
Web Technology
(1.5k)
Cyber Security
(358)
Digital Marketing
(331)
Technology Trends
(121)
SEO
(105)
Informatica
(22)
UI UX
(152)
Electric Vehicle
(24)
Investment Banking
(56)
Supply Chain Management
(30)
...