This entirely depends on the organization from where the certification is being done. Some institutes offer courses ranging of few weeks as less as even 3 weeks while some offer of few months extending up to 12 months. Most important thing is to select a course that has good recognition and is widely acclaimed in the industry to get a well-deserved SQL developer job.