Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get records in sql according to month name and count

SELECT EXTRACT(month FROM dateofappointment) "Month", count(*)
FROM appointment
WHERE EXTRACT(YEAR FROM dateofappointment) = '2014'
GROUP BY EXTRACT(month FROM dateofappointment)
ORDER BY EXTRACT(month FROM dateofappointment);
Comment

PREVIOUS NEXT
Code Example
Sql :: sql query to select records entered in last 24 hours 
Sql :: oracle sql drop column if exists 
Sql :: DATEDIFF minute postgres 
Sql :: how to find the number of rows updated in oracle pl/sql 
Sql :: sql datetime format 
Sql :: print integer and string in SQL 
Sql :: restore backup to new database sql server 
Sql :: primary key multiple 
Sql :: sum sqlalchemy 
Sql :: json query 
Sql :: sql email Regex 
Sql :: sql escape quote 
Sql :: Add a column with a default value to an existing table in SQL Server 
Sql :: sqlite unique 
Sql :: sql show table info 
Sql :: sql inner join with where clause 
Sql :: run mysql command from bash 
Sql :: database timezone 
Sql :: AND OR NOT operators sql 
Sql :: Create boolean column in MySQL with false as default value? 
Sql :: how to import pymysql through jupyter notebook for windows 
Sql :: mysql limit 
Sql :: q operator in sql 
Sql :: create table as select * from table mssql 
Sql :: sql query to find percentage of null values in a table 
Sql :: codeigniter get sql query string 
Sql :: how to write uppercase in sql 
Sql :: truncate oracle 
Sql :: how to run sql server on mac 
Sql :: sql string function update replace 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =