Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8760447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:02:49+00:00 2026-06-13T15:02:49+00:00

I am attempting to move a stored procedure from Microsoft SQL Server 2000 to

  • 0

I am attempting to move a stored procedure from Microsoft SQL Server 2000 to Informix 11. The original SP contains a final select statement with a GROUP BY statement that includes a converted datetime:

group by convert(varchar(8), c.startDateTime, 1)

When I convert this to Informix syntax I get a syntax error at run time:

GROUP BY (c.startDateTime::DATETIME YEAR TO DAY)::VARCHAR(10)

Can anyone please point me to how, if possible, this can be done in Informix? If this is not possible, which I suspect, how would you typically handle this in the overall query?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:02:50+00:00Added an answer on June 13, 2026 at 3:02 pm

    I think you need to convert from this:

    SELECT a, b, c 
    
    FROM  ...
    
    GROUP BY (c.startDateTime::DATETIME YEAR TO DAY)::VARCHAR(10) ;
    

    to something like:

    SELECT a, b, c, 
        (c.startDateTime::DATETIME YEAR TO DAY)::VARCHAR(10) AS d
    
    FROM  ...
    
    GROUP BY 4 ;        --- meaning: the 4th column in the SELECT clause
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to move to XE2 from Delphi 6. When I compile and
I'm attempting to move a web app we have (written in Perl) from an
I'm attempting to move from VS2008 to VS2010 and want to also upgrade the
I'm getting the following error when attempting to move an application from a state
I am attempting to move some code from one VS2008 project to another. The
I've been attempting move a directory structure from one location to another in Subversion,
I am attempting to move a highly referenced class from one namespace to another.
So I'm attempting to move a ScatterViewItem from 1 point to the another. I've
I'm attempting to move a project from virtualenv to buildout , but I don't
I'm (attempting) to move from textmate to vim [macvim to be exact] as my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.