i have a form and want to add "select location" option in it with Google map.
how can i done it and how can i get where the user is pin as his location?
Hello,
I'm developing a web application and need to page ordered results. I normaly use LIMIT/OFFSET for this purpose.
Which is the best way to page ordered results in Oracle? I've seen some samples using rownum and subqueries. Is that the way? Could you give me a sample for translating this SQL to Oracle:
SELECT fieldA,fieldB
FROM table
ORDER BY fieldA
OFFSET 5 LIMIT 14
(I'm using Oracle 10g, for what it's worth)
Thanks!
I have a list of installed software, obtained from WMI class select * from Win32_Product.
I'd like to deny execution rights for some users on certain software like so:
find the path to installed software
recursively remove execution rights
I find the path to installed software from Win32_Product InstallLocation column. But the PROBLEM is that not all rows in Win32_Product have a value for InstallLocation. What can I do to overcome this? Is there somewhere in registry where I can find this path?
Hi,
I'm trying to get Rails to capitalize the first character of a string, and leave all the others the way they are. I'm running into a problem where "i'm from New York" gets turned into "I'm from new york."
What method would I use to select the first character?
Thanks
A process running on my machine collects data from various websites and stores it in the local mysql db. Same data is exported using SELECT INTO OUTFILE and FTPed to the shared host every few hours. My hosting provider doesn't allow LOAD DATA INFILE to be executed on the shared host? What are my other options for automated/scheduled load to MYSQL db on my shared host?
Is there anything like this:
TEST DELETE FROM user WHERE somekey = 45;
That can return any errors, for example that somekey doesn't exist, or some constraint violation or anything, and reporting how many rows would be affected, but not executing the query?
I know you can easily turn any query in a select query that has no write or delete effect in any row, but that can lead to errors and it's not very practical if you want to test and debug many queries.
Hi,
SELECT * FROM ABC
WHERE PARATYPE = 'A'
AND MODELID = '50'
AND 'BA1' BETWEEN RAWMIN AND RAWMAX
AND ROWNUM < 2 ;
I have the above query .i have difficulty in converting rownum < 2 in plsql to hibernate query.
Can u help me .it's urgent.
Thank You.
Hi,
i have this page.
login: [email protected] password: m
You can see two selects in the filter for which i have this rule in gente.css:
td.select label{
margin-left:12px;
}
The problem: the rule is applied but doesn't appear in the Style tab of Firebug.
Any idea?
Regards
Javi
hi i m using Linq & C# and i want to filter my data as this syntax in Sql
Syntax in sql is
I hav one table name Customer in which name is field
'Select name from customer where name like 'C%''
can u help to solve this code in Linq
When i request for inbox messages in fql.query using the below query.
SELECT message_count FROM thread WHERE folder_id = 0
It is giving this error.
yyyyyyyyyy is not permitted to requested mailbox permissions from xxxxxxxxx
Hi all,
Any idea on how to order the results of a MYSQL query by the sum of two columns rather than by a single column?
Select * FROM table ORDER BY (col1+col2) desc
I know that won't work., but I hope it conveys what I want to do fairly well.
Thanks!
Does anyone know if you can run a select statement to return values on the table that the trigger is assigned to from inside the trigger?
Thanks in advance.
I often do code review in the following way:
Open the SVN log
Select a revision
Double click on a file...
...and wait
See the changes
Goto 2 or 3 or finish
The 4th step is very annoying. Do you know a solution for this?
We had a process that crashed while trying to manipulate an expected mysql record set, running the offending query from the mysql cli showed the following.
mysql SELECT ...;
ERROR 1030: Got error 127 from table handler
Is there a way to easily recreate this condition so we can validate our fix ? (production DB was already repaired).
Hello. I need to convert a cell with a double to a precentage.
I used a macro in excel and it says:
Range("B5").Select
Selection.Style = "Percent"
When I do this in c#, it doesn't work:
Excel.Range procentRange = xlWorksheet.get_Range("A1","A1");
procentRange.Style = "Percent";
Anybody knows how to do this?
I have a query like this:
SELECT COUNT(*) AS amount
FROM daily_individual_tracking
WHERE sales = 'YES'
AND daily_individual_tracking_date BETWEEN '2010-01-01' AND '2010-03-31'
I am selected from a date range. Is there a way to also get the total days in the date range?
I know that google goggles will translate a picture to text. What I want to do is allow the user to take a picture (no problem), translate that picture to text(?) and then do some processing on the text (no problem).
Is there any API on android that allows this? or is there any way to programtically communicate with google goggles? I would hate to have the user use goggles then select the saved file with my app.....
The folloqing is the excpetion I am getting
The null value cannot be assigned to a member with type System.Int32 which is a non-nullable value type.
below is my LINQ Statement where QuestionId is the primary key in my table
var questionViewsData = from questionViews in objDc.SC_QuestionsViews
join questions in objDc.SC_Questions
on questionViews.QuestionId equals questions.QuestionId into qs
from questions in qs.DefaultIfEmpty()
where questionViews.CreatedDate.Date == new DateTime(2010, 4,27)
select new
{
Selected =(questions == null ?-1:questions.QuestionId),
QuestioinTitle = questions.Title,
VotesCount = questions.VotesCount
};
Let me know how to resolve this
I'm at a loss to explain this one:
I'm getting an error "91" (Object or With block not set) on the second line below:
Dim rs As DAO.Recordset
Set rs = CurrentDb.OpenRecordset("SELECT * FROM employees")
The following also causes it:
Set rs = CurrentDb.OpenRecordset("employees")
Executing ?CurrentDb.Name alone in the immediate window causes the error as well.
Now, clearly the database is open since I'm editing the form within it, so what can cause this error here?
I'm trying to programmatically select the text in a textbox, and focus on it too, so that when the form is launch the user only has to start typing and it will replace what is already there.
I've been using the code:
stage.focus = _finalScoreTF;
_finalScoreTF.setSelection(0, _finalScoreTF.text.length - 1);
but it doesn't work...any ideas?
I just came across this database query and wonder what exactly this query does..Please clarify ..
select * from tablename order by priority='High' DESC, priority='Medium' DESC, priority='Low" DESC;
i have 1 master page with 5 pages that call it. now on the master page, I have few dropdowns and textboxes, and the calling pages only have a small article in the corner. I want to start a session on page_load event, so that if the user chooses to select a dropdown or put data in textbox, even if he clicks on the other 4 links of other pages, the data should stay.
how can this be done?
Query:
select emp.empname as Name, dep.depname as Department
from Employee as emp
inner join Department as dep on emp.depid=dep.depid
where emp.id='2'
How can I change this to linq to sql?
I'm trying to select the id of a textArea when it's focused in
<s:TextArea id="textarea1" focusIn="selectId(event)" />
selectId(event){
event.target.id;
}
Problem is TextArea is made up of RichEditableText so target doesn't actually refer to TextArea. I've tried event.target.parent.id but still not getting there. Anyone knows how to get to the bottom of this?
I have an object, 'Response' that has a property called 'submitter'. Submitters can be one of several different classes including Student, Teacher, etc...
I would like to be able to execute a criteria query where I select only responses submitted by teachers - so this means putting a class restriction on an associated entity. Any ideas on this? I'd like to stay away from direct SQL or HQL.