Sampuran programming

Sampuran programming

Share

We deal in
LANGUAGE:C++,JAVA,LINUX,RUBY
WEB DESIGNING:PHOTOSHOP,FLASH,HTML
WEB DEVELOPMENT:PHP,ASP,.NET
CMS:WORDPRESS,DRUPAL,SMARTY,JOOMLA
FRAMEWORK:ROR

06/04/2021

5 days Bootcamp.

Learn professional PHP training.

It cost 199/- rupees only.

Location: Mohali sector 74.

Only first 20 users get this benefit.

19/03/2021

PHP Bootcamp for 1 month.

Sampuran programming Belief in Clean and Quality of code

23/03/2016

Happy Holi frnds!

10/10/2014

You can't a table that has FK constraints applied on it.

:
To truncate the table. You have to remove the constraints first then truncate it and then apply constraints on table.

SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE_NAME;
SET FOREIGN_KEY_CHECKS = 1;

28/08/2014

See unexcepted behaviour count function with order clause.

Suppose table t contains n record.
Id, last_call, last_call_duration
1, 2014-09-2014 14:24:41, 4 -08-14 07:24:29, 0
26, 2014-09-2014 14:24:41, 4

order by desc
Select id, last_call, last_call_duration from t order by last_call desc.

:
26, 2014-09-2014 14:24:41, 4
1, 2014-08-14 07:24:29, 0

order by desc with count function
Select count(last_call),id, last_call, last_call_duration from t order by last_call desc.

:
Count(last_call),id,....
2,1, 2014-08-14 07:24:29, 0

solve this :

Select count(last_call),id,last_call,last_call_duration from
(select last_call,last_call_duration from t)t1


Count(last_call),id,last_call,last_call_duration
2, 26, 2014-09-2014 14:24:41,4

Want your business to be the top-listed Computer & Electronics Service in Mohali?
Click here to claim your Sponsored Listing.

Website

Address

Mohali
160055

Opening Hours

Monday 9am - 5pm
Tuesday 9am - 5pm
Wednesday 9am - 5pm
Thursday 9am - 5pm
Friday 9am - 5pm
Saturday 9am - 5pm