Date Conversion
Date is given as varchar(xx) -> 30-APR-21 00.00.00.000000 AM
Need to find the distinct of this varchar column ignoring the timestamp.
Hive Query : select DISTINCT SUBSTRING(column_name, 1, 9) from tablename where partition_year=2021 and partition_month=10 and partition_day=12;
OUTPUT: 30-APR-21
-
Recent
- How To Delete SubFolder in Team Foundation Server
- How To Delete Project from Team Foundation Server 2005/2008
- HowTo : Delete SharePoint Shared Service Provider (SSP)
- TF31002 : Unable to connect to TFS 2008
- Team Foundation services are not available from server http://127.0.0.1:17012/_vti_bin/TeamFoundationIntegrationservices.asmx
- How to Run IIS and WAMP on Windows 2003 Server
- Dell Diagnostic, Power Button, POST Beep and Error Messages Codes
- Windows Server 2008 R2 + SQL SERVER 2008 + MOSS2007
- How to use convert vmdk to vhd
- CRUISECONTROL + SOURCE VAULT + devenvbuild
- HTTP Error 500.23 – Internal Server Error : An ASP.NET setting has been detected that does not apply in Integrated naged pipeline mode
- TF30335 : Could not connect to the TFS2010 server through Visual Studio 2008 client
-
Links
-
Archives
- February 2010 (3)
- January 2010 (2)
- November 2009 (3)
- October 2009 (2)
- September 2009 (1)
- August 2009 (4)
- June 2009 (1)
- May 2009 (1)
- April 2009 (1)
- March 2009 (2)
- February 2009 (1)
- October 2008 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS