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

  • SEARCH
  • Home
  • 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 7890681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:25:08+00:00 2026-06-03T06:25:08+00:00

I am stucking in sql statement . Please my query below select master_brand.BRAND_NAME as

  • 0

I am stucking in sql statement .
Please my query below

select 
                               

 master_brand.BRAND_NAME as AcCompanyID, 
                                    lewre_product.SKU_CODE as AcStockID,
                                    lewre_product.SKU_CODE as BarCode,
                                    lewre_product.SKU_CODE as StockBarCode,
                                    lewre_product.SKU_CODE as StockDescription1,
                                    NULL as StockDescription2,
                                    lewre_project.PROJECT_NAME as AcStockBrandID,
                                    lewre_artice.ARTICLE_NUMBER as AcStockGroupID,
                                    icenter_acStockCategory.CATEGORY_CODE as AcStockCategoryID,
                                    icenter_acStockColor.AcStockColorID as AcStockColorID,
                                    lewre_product.SIZE as AcStockSizeID,
                                    'NA' as ISBN,
                                    master_product_type.UOM as AcStockUOMID,
                                    lewre_article_price.FINAL_COST as StockCost,
                                    lewre_article_price.PRICE as StockPrice1,
                                    0 as StockPrice2,
                                    0 as StockPrice3,
                                    0 as StockPrice4,
                                    0 as StockPrice5,
                                    lewre_artice.CREATE_DATE
        
                          

 from [LEWRE.ARTICLE]as lewre_artice,
                                 [iCENTER.ACSTOCKCATEGORY]  as icenter_acStockCategory,
                                 [iCENTER.ACSTOCKCOLOR] as icenter_acStockColor,
                                 [LEWRE.PRODUCT] as lewre_product,
                                 [MASTER.BRAND] as master_brand,
                                 [LEWRE.PROJECT] as lewre_project,
                                 [MASTER.PRODUCT_TYPE] as master_product_type,
                                 [LEWRE.ARTICLE_PRICE] as lewre_article_price
         

                     

   where
                                (icenter_acStockCategory.CATEGORY_ID = lewre_artice.PRODUCT_CATEGORY_ID
                             AND icenter_acStockCategory.PRODUCT_TYPE_ID = lewre_artice.PRODUCT_TYPE_ID)
                             AND lewre_product.ARTICLE_ID = lewre_artice.ARTICLE_ID
                             and lewre_product.COLOR_ID = icenter_acStockColor.COLOR_ID
                             and master_brand.BRAND_ID = lewre_artice.BRAND_ID
                             and lewre_artice.PROJECT_ID = lewre_project.PROJECT_ID
                             and master_product_type.PRODUCT_TYPE_ID = lewre_artice.PRODUCT_TYPE_ID
                             and lewre_artice.ARTICLE_ID = lewre_article_price.ARTICLE_ID
                             and lewre_artice.CREATE_DATE 
                     
                             
                             
                             order by lewre_artice.CREATE_DATE
                                 

Here is the result that i get

enter image description here

I want to select all row which create_date is current date.for example (2012-04-30)’ . How can i get the result? Please help me

  • 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-03T06:25:10+00:00Added an answer on June 3, 2026 at 6:25 am

    Add this to your where clause.

      lewre_artice.CREATE_DATE >= cast(getdate() as date) and 
      lewre_artice.CREATE_DATE < cast(dateadd(day, 1, getdate()) as date)
    

    getdate() returns the current timestamp and cast(getdate() as date) removes the time part. dateadd(day, 1, ....) adds one day. The comparison returns the rows where CREATE_DATE is within the interval.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A colleague of mine is currently designing SQL queries like the one below to
I have a query that runs correctly from SQL Developer but bombs when attempting
I'm pretty experienced in C#, but still mostly a beginner in SQL. We have
I am working on a new system with a SQL Server 2005 database which
Using Microsoft Sql 2000 I have a requirement to be able to email a
Say we have some poorly written SQL that does not release temp tables when
I have a (CSS) stacking question. The tab-boxes on my development site below have
I am sticking values into a script, and I am using the function below
How would I search an SQL database when a user makes a selection in
im stucking with Writing to Text File in the Resource, i can read from

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.