Data Analysis
Public Group active 11 months, 1 week agoOut of place? Maybe… but it’s what we do. Come here to find better ways to crunch your numbers
-
fishwrench started the forum topic Using an Excel Array Formula To Median If in the group
Data Analysis: 11 months, 1 week agoExcel array formulas… I nearly forgot about this bad-boys. Good thing I remembered how to use them, or I would be doing a lot of cutting and pasting at this late hour on a Friday. I was tasks with finding the Median for a range of numbers based on specific criteria. I had length-of-employment ranges [...]
-
godfather joined the group
Data Analysis 1 year ago -
godfather joined the group
Data Analysis 1 year ago -
fishwrench started the forum topic SQL: Bulk Insert Unix File Row Terminator in the group
Data Analysis: 1 year, 1 month agoHaving trouble figuring out what the row terminator is for what appears to be .csv file but is actually Unix? Use the following:
ROWTERMINATOR = ’0x0a’
-
bobstanke posted an update in the group
Data Analysis: 1 year, 1 month agoDoes anyone know how to have MS Excel go out and retrieve a current stock price when the spreadsheet is loaded up? I would prefer to have this done in Google Docs, so if you have that solution it would be even better, but Excel will do for now. Thanks!
-
fishwrench started the forum topic SQL: First Day of the Month in the group
Data Analysis: 1 year, 3 months agoLooking for a way to find the first day of last month, this month, or next month? The following sql queries make it easy.
-
fishwrench started the forum topic Wordpress: Forum Post 404 Error in the group
Data Analysis: 1 year, 5 months agoSo, you’ve installed Wordpress and Buddypress on your site. Things look great, but you get a 404 page not found error every time you make a new post. The problem is in the pluggables.php file found in the wp-includes directory of your Wordpress install. There is some code that newer versions of IIS won’t play [...]
-
fishwrench started the forum topic SQL: ISNULL() Like Access nz() Function in the group
Data Analysis: 1 year, 6 months agoI developed for years in Access and finally made the leap to SQL. One item that took me quite awhile to figure out was the command to use in place of the Access nz function. Access junies know that nz() will treat a Null value as 0 so MyField can be used for calculations. Yikes! There [...]
-
fishwrench started the forum topic SQL: Select Random Rows In Query in the group
Data Analysis: 1 year, 6 months agoSo, someone has asked you for a list of records from your database, but they want a random pull. In your access days, you would have simply used:
Code:SELECT *, RND(MyMemberID) FROM tblMyTable ORDER BY RND(MyMemberID)No such luck in SQL. Doing something similar there would give you the same randomly generated number for each row. [...]
-
fishwrench started the forum topic SQL: Format Date as MM/DD/YYYY in the group
Data Analysis: 1 year, 6 months agoMuch of the data I work with on a daily basis has to be grouped by months that span any number of years. Because I’m crossing multiple years, I can’t simply group by month and call it good. I also need a year designation. At the same time, I want my date field to be formatted [...]
-
fishwrench started the forum topic ASP.NET: Add a Print Button To aspx Page in the group
Data Analysis: 1 year, 6 months agoAn easy way to add a a print button to an asp.net page is to use javascript. The following script will add a default print button that will open the Windows print dialogue box and ultimately print the web page being viewed. <input type=”button” id=”btnPrint” onclick=”window.print ()” value=”Print”> You can also use a custom print button by [...]
-
fishwrench started the forum topic ASP.NET: Add Edit Item Dropdown List in the group
Data Analysis: 1 year, 6 months agoWow…I beat my head on my desk for quite awhile trying to figure this one out. I had to add a dropdown list to a gridview when editing / updating. The value of the dropdown had to be passed to an update query. Adding the dropdownlist wasn’t hard — getting the update query to work was [...] -
fishwrench started the forum topic Access: Calculating Age In An Access Query in the group
Data Analysis: 1 year, 6 months agoTo calculate age in an access query, use the DateDiff function.
DateDiff("yyyy",,Date())“yyyy” tell the function you want to calculate the difference between two dates in years. is your column name containing the date of birth. If your column name is ‘Birthday’, then use here. Date() tells Access to grab today’s date. DateDiff() can be used [...] -
fishwrench started the forum topic SQL: Group by Hour in the group
Data Analysis: 1 year, 6 months agoI’ve been making the transition from Access to SQL and finding that some function don’t exist in SQL, or at least not as how they appear in Access. If you’re looking to group by hour in SQL, use the following function:
GROUP BY datapart(hh,yourcolumnname)Happy grouping!
-
chris posted on the forum topic SQL: Find Beginning of Today in the group
Data Analysis: 1 year, 6 months agoHere’s another way, that has a little more hack flavor. Covert the date to yyyyMMdd format first then back to a date.
select Convert(datetime,Convert(varchar(12),getDate(),112)) -
chris joined the group
Data Analysis 1 year, 6 months ago -
2ndbase started the forum topic SQL: Select Random Rows In SQL Query in the group
Data Analysis: 1 year, 6 months agoSo, someone has asked you for a list of records from your database, but they want a random pull. In your access days, you would have simply used: Code: SELECT *, RND(MyMemberID) FROM tblMyTable ORDER BY RND(MyMemberID) No such luck in SQL. Doing something similar there would give you the same randomly generated number for [...]
-
2ndbase joined the group
Data Analysis 1 year, 6 months ago -
fishwrench started the forum topic SQL: Find Beginning of Today in the group
Data Analysis: 1 year, 6 months agoTo find the beginning of today (removing the time component from a datetime column), use the FLOOR function in combination with CAST: Code:
SELECT CAST(FLOOR(CAST(getdate() AS float)) AS datetime)This will convert the date to a decimal (float) format, drop the decimal portion, and then cast it again as a datetime. Yahoo – date only; no [...] -
bobstanke joined the group
Data Analysis 1 year, 6 months ago - Load More









@bobstanke — Excel makes it possible to import just about anything from any web page. If using Excel 2007, click on ‘data’ and then ‘From Web’. It’s the second icon from the left if you’re using the default Excel settings. From there, navigate to the page that has the data you’re looking for in the New Web Query box. Click the yellow…[Read more]
I should also mention, to have the data populate every time you open the page, select ”Properties…’ before closing the New Query Wizard box. There, you’ll see a checkbox allowing you to refresh the data on open. Make sure that is checked.
AWESOME! Thanks!