This question already has answers here:
Oracle DB: How can I write query ignoring case?
(9 answers)
Closed 4 years ago.
I am working with database where i need to retrieve distinct values. Example [English enGLish english ....] all this should be displayed as English only. Can anyone tell me how to achieve this.
Thanks in advance
Looks like you need function initcap():
demo
select distinct initcap(column_name) from your_table
Related
This question already has answers here:
C# Linq Where Date Between 2 Dates
(9 answers)
Closed 7 years ago.
What is the Syntax to use Between Keyword in LINQ? Is it possible to use BETWEEN keyword in LINQ?
Awaiting for the response.
Thanks
You can use >= and <=.
Look similar question
This question already has answers here:
Oracle: function based index selective uniqueness
(2 answers)
Closed 8 years ago.
I have a table with a column IS_LOGGED which takes only two values 'Y' or 'N'
I want to have a Function based index on the column IS_LOGGED where value is 'Y'.
The purpose of index is to list all entries in an easy and fast to access manner.
Suppose you get a 1500 pages thick book to read with an index listing only specific chapters. What is the use of such an index?
I don't think you need a function based index here. Simply create an index and modify your queries to include IS_LOGGED = 'Y' clause.
This question already has answers here:
LINQ : Dynamic select
(12 answers)
Closed 8 years ago.
I'm working with dynamic queries using LINQ on Entity Framework.
To query some tables by user input filters, we are using PredicateBuilder to create conditional WHERE sections. That works really great, but the number of columns returned are fixed.
Now, if we need the user to select which columns he needs in their report, besides their filters, we are in trouble, as we don't know how to do dynamic myQuery.Select( x => new { ... }) as we do for Where clause.
How can we achieve something like this?
A bit of searching reveals that this is tricky. Anonymous types are created at compile time, so it is not easy to create one dynamically. This answer contains a solution using Reflection.emit.
If possible, I would recommend just returning something like a IDictionary<,> instead.
This question already has answers here:
Understanding .AsEnumerable() in LINQ to SQL
(4 answers)
C# - AsEnumerable Example
(10 answers)
Closed 9 years ago.
I am new to LINQ. my question is why do we use asenumerable() in query when we can get out answer without even using it. i want my concept to be cleared about asenumerable() function. please help.
This question already has an answer here:
How to check if a columns value was explicitly specified in a PL/SQL BEFORE UPDATE trigger?
(1 answer)
Closed 8 years ago.
Is there an efficient method to identify which column has changed in a table in Oracle using a trigger? How to check if only one column (of interest) or all other columns also changed?
As the post Alex Pole pointed in your comments states, you could use the UPDATING function.
But you can also develop different triggers for updating specific columns with "BEFORE UPDATE OF" clause, witch is the optimal option if there is no code to share among the actions for the involved columns.