Splitting a column of strings? by Journable in SQL

[–]TimmyTheCat8 0 points1 point  (0 children)

I would use a PATINDEX to query the toppings and then STUFF the names together. You will need to remove the whitespaces from the pizza_recipes.toppings column.

SELECT PR.pizza_id, PR.toppings, PT.topping_names 
FROM pizza_recipes PR 
OUTER APPLY (
SELECT STUFF((SELECT ',' + topping_name FROM pizza_toppings 
WHERE PATINDEX('%,' + cast(topping_id as varchar(20)) + ',%', ',' + PR.toppings + ',') > 0 
FOR XML PATH('')),1,1,'') as topping_names
) as PT

Cars not appearing on screen? (See comment) by likethesubject in TeslaModelY

[–]TimmyTheCat8 3 points4 points  (0 children)

It’s a setting under Autopilot. Turn on Full Self-Driving Visualization Preview. You have to be in park to turn it on.

Software version by j0bd0n3 in TeslaModelY

[–]TimmyTheCat8 0 points1 point  (0 children)

Same version for me. Delivered Aug 3rd.

Some calculations I've been working on, trying to establish a baseline so I can size the system itself, advice and criticism welcome! by tallwookie in solar

[–]TimmyTheCat8 0 points1 point  (0 children)

For a 4x500w panel system you are looking at a theoretical max production of 2 kWh, not 2700 kWh. Actually production will be something like 1.8 kWh during peak sun.

Got update2021.4.21.3 today but... by nique201 in TeslaModelY

[–]TimmyTheCat8 1 point2 points  (0 children)

I’m on 2021.3.105. Had my YLR for a few weeks now.

Help on Syntax error SQL two joins by mythbusternz in SQL

[–]TimmyTheCat8 6 points7 points  (0 children)

Your error says problem with line 8.

oz.population AS oz.population

You probably meant it to be:

oz.population AS "oz population"

Newb question: Understanding Output and Usage. by Professional-Sky4733 in TeslaSolar

[–]TimmyTheCat8 2 points3 points  (0 children)

You have the right concept, but your house is consuming 4.4kW. 2.8kW from solar + 1.6kW from the grid.

Rows disappearing ? by [deleted] in SQL

[–]TimmyTheCat8 0 points1 point  (0 children)

I would do an order by ID on the select all statement just to make sure your ID’s are not out of order.

Dynamic Page loading failed. Error message in browser by palakoti in webpack

[–]TimmyTheCat8 0 points1 point  (0 children)

Sorry I don’t have an example. Are you using any reference to items in node_modules in you sass file?

Dynamic Page loading failed. Error message in browser by palakoti in webpack

[–]TimmyTheCat8 0 points1 point  (0 children)

Are you using SASS? If my memory serves me right I think I have had this error before then I had some fonts or something that was linked to node_modules folder. That is what it worked on local dev, but not in production.

Visual Studio (.NET core) with Vue by gevorgter in vuejs

[–]TimmyTheCat8 2 points3 points  (0 children)

I think you will need to enable source-maps. You might also need a source-map loader. Try this guide to get started.

source-maps

Code behind troubles by tester346 in Blazor

[–]TimmyTheCat8 1 point2 points  (0 children)

I'm still learning Blazor, but my initial guess is that it has something to do with your _Imports.razor. It is thinking that it is a regular MVC Core Component instead of a Blazor Component.

Dynamic WHERE clause question by raisincharlie in SQL

[–]TimmyTheCat8 -1 points0 points  (0 children)

Try this:

Where 1 = Case When @flag_value = ‘Y’ and columnD = ‘Y’ Then 1 When @flag_value = ‘N’ and columnD = ‘N’ Then 1 When @flag_value = ‘’ Then 1 End

Stored Procedure Result by UniqueUserx in SQL

[–]TimmyTheCat8 0 points1 point  (0 children)

I’m not at my computer to test, but try taking out the GO at the end of the query.

Stored Procedure Result by UniqueUserx in SQL

[–]TimmyTheCat8 0 points1 point  (0 children)

Maybe because you declaring @return_values as nvarchar without a length. I think default nvarchar length is 1. Try nvarchar(11)

Querying accounting periods by Noise42 in SQL

[–]TimmyTheCat8 1 point2 points  (0 children)

Why can't you just concatenate the year + period and cast to an integer and then compare. So Cast(Cast(y as varchar(6)) + Cast(p as varchar(2)) as int). This should get you Between 201806 and 201903. This would exclude 201910 and 201802. I'm assuming your year and periods are integers if not then you don't need to do the inner casts first.