BaşlayınÜcretsiz Başlayın

CONVERTing data

Another important function similar to CAST() is CONVERT(). They are very similar in functionality, with the exception that with CONVERT() you can use a style parameter for changing the aspect of a date. Also, CONVERT() is SQL Server specific, so its performance is slightly better than CAST(). Nonetheless, it's important to know how to use both of them.

In this exercise, you are going to enhance your knowledge of the CONVERT() function.

Bu egzersiz

Functions for Manipulating Data in SQL Server

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

SELECT 
	email,
    -- Convert birthdate to varchar show it like: "Mon dd,yyyy" 
    ___(varchar, ___, 107) AS birthdate
FROM voters;
Kodu Düzenle ve Çalıştır