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 6363363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:01:48+00:00 2026-05-25T00:01:48+00:00

Client table contains first name, last name, email, and department. I need to compare

  • 0

Client table contains first name, last name, email, and department. I need to compare the username portion of the email address (that is, everything before @) to the session’s username to verify authenticity.

How may I structure my cfquery to compare the desire portion of the email address to the session variable casuser?

<cfquery name="getUsername" dsn="myDSN">    
select firstname, lastname, email, department, organization, rank
            from client
            where email= '#casuser#'
</cfquery>

The database is on SQL Server 2008 using CF8.

Thanks.

  • 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-05-25T00:01:49+00:00Added an answer on May 25, 2026 at 12:01 am

    Pretty much you need to use like statement and compare anything including @ sign. So should be something similar to this:

    select firstname, lastname, email, department, organization, rank             
    from client             
    where email like '#casuser#@%'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a confirmation. Client 1 insert rows in a table inside a transaction.
I have table for comunication between clients and operaters, which contains phone, id (1=client,
I have a table that isn't going to get very big and contains the
I have a table that contains information pointing to files stored on a file
I want to use Christian Bach's tableSorter client-side table sorting jQuery plugin with my
I have a table that looks like: Client_ID | Order_ID | 10 | 1
I have a table, tblClient , which stored a client's date of birth in
Ok here's the deal I got one table with a bunch of client information.
Lets say I have table with following columns 1. Client - string. 2. Profit
I have those two tables: client: id (int) #PK name (varchar) client_category: id (int)

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.