Sql Group By Snippets


18 January, 2012   

SQL GROUP BY Clause returns group of rows. An example code for SQL GROUP BY clause

08 September, 2012   

SQL query to know total number of employee on each department.

18 January, 2012   

You can combine with SQL JOIN clause to show department name with count.

MySQL code to find all duplicates in a database column(s)n.

04 January, 2012   

SQL example Code for SELECT statement with HAVING clause

13 March, 2012   

PL/SQL code example Using the HAVING Clause

11 July, 2013   

Help manage mysql database common task

PL/SQL code example for using the MAX function with having clause

Oracle PL/SQL example for avoiding overlapping months and years

21 January, 2012   

PL/SQL Block that uses implicit cursor attributes as below example code.

31 December, 2011   

MySQL's MAX aggregate function will find the largest value in a group. here shown an example

01 December, 2011   

The following code block shows how to run DML statements in PL/SQL. Basically they look similar to the SQL. Note that the SELECT statement retrieves the single-row value and store into a variable using INTO clause.

09 May, 2011   

This is a general code to use when selecting an item from a MySQL database. This code isn't considered definitive and can be written in many varied ways. Note: This code requires you to connect to the MySQL database to work. Also, all field and table names need to be set up to match. This MYSQL Code using in PHP

Exam code to backup MySQL Database to SQL File

In order for this to work, you will need to copy mysqldump.exe and mysql.exe from the MySQL bin Program Files folder into the same directory as your executing PHP script. If you know the direct path to these for your server, you can use those instead.

PL/SQL functions returns a scalar value and PL/SQL procedures return nothing. Both can take zero or more number of parameters as input or output. The special feature about PL/SQL is that a procedure/function argument can be of input (indicating the argument is read-only), output (indicating the argument is write-only) or both (both readable and...

08 September, 2012   

SQL query to know employees where city is null

13 May, 2013   

You can also run this an anonymous SQL Block

24 August, 2013   

MySQL code to find duplicate records in table

19 December, 2012   

How to convert a java util Date into a sql Date for use in databases.