Share

MySQL: The WHERE Statement

Select a row from a specific column by giving a condition- SELECT name, address FROM customers WHERE id=54 Select all the row accept a specific row from a column- SELECT name, address FROM customers...

MySQL: Advanced Filtering with AND, OR

For multiple conditions the use of statement AND- SELECT name, state, city FROM customers WHERE state='CA' AND city='Hollywood' For multiple conditions the use of statement OR- SELECT name, state,...

MySQL: Subqueries

This is some kinds of sorting. If want to find out some portion of your information according to a order then follow the examples- SELECT name, cost FROM items WHERE cost>(250) ORDER BY cost DESC ELECT...

MySQL: Functions

If you want want to create a custom column which will hold the upper case letters and everything then use the character function UPPER - SELECT name, UPPER(name) FROM customers There are different...

MySQL: Create Custom Columns

Creating a custom column use the keyword CONCAT - SELECT CONCAT(city,',',state) FROM customers Give name to the new custom column - SELECT CONCAT(city,',',state) AS new_info FROM customers ...

MySQL: IN, NOT IN Statements

If you want to find a specific information from different sources/places from database then you can use the statement IN like this- SELECT name, state FROM customers WHERE state IN('CA','NY','NC') If...

Create A Contact Form For Your Blog

A good blog should have a Contact Us option in it so that readers can contact with the...

Add HTML Meta Tag in Blogger

Meta tags are very important for any blog or website. Google bots read Meta tags and...

MySQL: SQL Syntax Rules

If you want to run multiple queries at a time then command for selecting city and id from customers- SELECT city FROM customers; SELECT id FROM customers; You run the any query by giving line breaks...

MySQL: DISTINCT and LIMIT

If there is duplicate result in data but you are asked to show distinct result then command- SELECT DISTINCT state FROM customers    If you are asked to find a list of 10 customers from...

MySQL: Sorting Results

If you have more tables in your database those who are holding columns of same name then you can sort out the specified column and its data form a table by this command- SELECT customers.address FROM...

MySQL: Selecting Multiple Columns

Retrieve more than one column of a table in the same SELECT statement- SELECT name,zip FROM customers Show all the columns of a table in the same SELECT statement- SELECT * FROM customers ...

SQL Statements: SELECT

To see your databases command- SHOW DATABASES To see your tables in a database command- SHOW TABLES To see all the column names in a table named customer command- SHOW COLUMNS FROM customers If...

Learn SQL Basics

I am going to make a few tutorials about MySQL to let you know how to create it and access...

How to Add Facebook Popup Like Box Widget to Blogger

It is always a very good practice to link Facebook page to your blog. If you have...

How to Add Codes in Blogger Post by Creating Code Box

Steps to add code box in blogger: Go to the Dashboard of your blog and select Template.  Click...